package org.supreme.basic.excetion;

import lombok.Data;

@Data
public class GlobalExcetion extends RuntimeException{

    private String code;

     public GlobalExcetion(){

     }
    public GlobalExcetion(String message){
        super(message);
    }
    public GlobalExcetion(String message,String code){
        super(message);
        this.code=code;
    }
    public GlobalExcetion(GlobExcetionEnum globExcetionEnum){
        super(globExcetionEnum.getMessage());
        this.code=globExcetionEnum.getCode();
    }
}
